﻿Public Class Deporte

    Public Sub New()
        _evento = New Collection
    End Sub

    Private _iddeporte As Integer
    Public Property iddeporte() As Integer
        Get
            Return _iddeporte
        End Get
        Set(ByVal value As Integer)
            _iddeporte = value
        End Set
    End Property

    Private _nombre As String
    Public Property nombre() As String
        Get
            Return _nombre
        End Get
        Set(ByVal value As String)
            _nombre = value
        End Set
    End Property


    Private _ubicacion As String
    Public Property ubicacion() As String
        Get
            Return _ubicacion
        End Get
        Set(ByVal value As String)
            _ubicacion = value
        End Set
    End Property

    Private _descripcion As String
    Public Property descripcion() As String
        Get
            Return _descripcion
        End Get
        Set(ByVal value As String)
            _descripcion = value
        End Set
    End Property

    Private _costo As String
    Public Property costo() As String
        Get
            Return _costo
        End Get
        Set(ByVal value As String)
            _costo = value
        End Set
    End Property


    Private _instructor As String
    Public Property instructor() As String
        Get
            Return _instructor
        End Get
        Set(ByVal value As String)
            _instructor = value
        End Set
    End Property

    Private _fecha_evento As String
    Public Property fecha_evento() As String
        Get
            Return _fecha_evento
        End Get
        Set(ByVal value As String)
            _fecha_evento = value
        End Set
    End Property


    Private _evento As Collection
    Public Property reserva() As Collection
        Get
            Return _evento
        End Get
        Set(ByVal value As Collection)
            _evento = value
        End Set
    End Property

    Public Sub agregarEvento(ByVal p As Evento)
        _evento.Add(p)
    End Sub


End Class
